export function generateColumns() {
  return [
    {
      title: "命名空间名称",
      key: "namespaceName"
    },
    {
      title: "命名空间ID",
      key: "namespaceId"
    },
    {
      title: "用户名",
      key: "userName"
    },
    {
      title: this.$t("common.operating"),
      align: "left",
      fixed: "right",
      width: 80,
      render: (h, params) => {
        return h(
          "div",
          {
            style: {
              display: "flex"
            }
          },
          [
            h("RowTools", {
              props: {
                data: [
                  {
                    type: "icon",
                    icon: "md-trash",
                    text: this.$t("common.delete"),
                    handle: () => {
                      this.deleteHandle(params.row);
                    }
                  }
                ]
              }
            })
          ]
        );
      }
    }
  ];
}
